#ifndef __TRAINING_H_
#define __TRAINING_H_
#include <string>
#include <fstream>
#include <vector>
#include <map>
#include "pdfmanager.h"

using namespace std;

class TraningManager{

private:
	TraningManager();

public:
	~TraningManager();

	static TraningManager* getInstance()
	{
		if ( m_pInstance == NULL ) 
			m_pInstance = new TraningManager();
		return m_pInstance;
	}

	int getTraningClassificationsLen();
	vector<string> openFile(string& file);
	vector<string> getFolderName();
	int getTrainingCount();
	int getTrainingCountOfClassification(string &classification);
	int getTrainingCountOfKeyWord(string &classification,std::string &key);
	int getFileCountOfIDF(string& word);
	//static void setTrainingFileList(vector<string> &fileList);
	//static void setTrainingFolderList(vector<string> &folderList);
	static void setAllFiles(map<string, vector<string>>& allFiles);

private:
	//static vector<string> _traningFileList;
	//static vector<string> _traningFolderList;
	//static vector<string> _traingFolderOfFileCnt;
	//static string _rootFolder;
	static map<string, vector<string>> _allFiles;
	static TraningManager  *m_pInstance;
};

#endif